import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex)

import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import cart from './modules/cart'
import user from './modules/user'
import center from './modules/center'
import pay from './modules/pay'
export default new Vuex.Store({
    state: {
        keyword: ''
    },
    getters: {},
    mutations: {
        updateKeyword(state, keyword) {
            state.keyword = keyword
        }
    },
    actions: {},
    modules: {
        home,
        search,
        detail,
        cart,
        user,
        center,
        pay
    }
})